﻿@model ExampleProject.Models.Paging
           
<ul class="pagination" id="pagingSearchProject" style="margin-top: 10px;">
    @if (Model.IsFirst)
    {
        <li>
            <a href="javascript:void(0)" data-page="@Model.PreviousPage">&larr; Prev</a>
        </li>
    }
    @for (int i = 1; i <= Model.Total; i++)
    {
        if (i == Model.CurrentPage)
        {
            <li class="active">
                <a href="javascript:void(0)">@i</a>
            </li>
        }
        else
        {
            <li>
                <a href="javascript:void(0)" data-page="@i">@i</a>
            </li>
        }
    }
    @if (Model.IsLast)
    {
        <li>
            <a href="javascript:void(0)" data-page="@Model.NextPage">Next &rarr;</a>
        </li>
    }
</ul>